﻿<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="ucManageStaffAuthorize.ascx.vb" Inherits="RWN.ucManageStaffAuthorize" %>
<%@ Register Assembly="NumericTextBox" Namespace="NumericTextBoxControl" TagPrefix="cc1" %>
<%@ Register Assembly="Sarayut.ControlLibrary" Namespace="Sarayut.ControlLibrary" TagPrefix="cc2" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc3" %>
<%@ Register Assembly="AjaxValidationSummary" Namespace="AjaxValidationSummary" TagPrefix="cc4" %>
<style type="text/css">

a {
	text-decoration:none;
}
</style>
<asp:ScriptManager ID="ScriptManager1" runat="server" EnableScriptGlobalization="True">
</asp:ScriptManager>
<asp:Literal ID="ltrJS" runat="server"></asp:Literal>
<script language="JavaScript">

</script>
<table cellpadding="0" cellspacing="0" class="profile" style="width: 100%;" bgcolor="#FFFFFF">
    <tr>
		<td class="pk">
			<strong>
				<asp:Literal ID="Literal1" runat="server" 
                Text="ช้อมูลของ User ID ที่ทำการแก้ไข"></asp:Literal></strong>
		</td>
	</tr>
	<tr>
		<td>
			<table border="0" cellpadding="0" cellspacing="0" style="width:100%;">
	            <tr>
		            <td bgcolor="#E0E0E0" width="20%">
			            เลขที่เข้าใช้งาน :
		            </td>
		            <td>
			            <asp:Label ID="OFFICER_APP_ID" runat="server" MaxLength="255"></asp:Label>
		            </td>
		            <td>
			            &nbsp;
		            </td>
		            <td>
			            &nbsp;
		            </td>
	            </tr>
	            <tr>
		            <td bgcolor="#E0E0E0" width="20%">
			            ชื่อ (ไทย) : 
		            </td>
		            <td>
			            <asp:Label ID="OFFICER_FIRSTNAME_THA" runat="server" MaxLength="255" Width="200px"></asp:Label>
		            </td>
		            <td bgcolor="#E0E0E0" width="20%">
			            นามสกุล (ไทย) : 
		            </td>
		            <td>
			            <asp:Label ID="OFFICER_LASTNAME_THA" runat="server" MaxLength="255" Width="200px"></asp:Label>
		            </td>
	            </tr>
	            <tr>
		            <td bgcolor="#E0E0E0" width="20%">
			            User ID :
		            </td>
		            <td>
			            <asp:Label ID="USER_ID" runat="server" MaxLength="255"></asp:Label>
		            </td>
		            <td>
			            &nbsp;
		            </td>
		            <td>
			            &nbsp;
		            </td>
	            </tr>
            </table>
        </td>
	</tr>
    <tr>
		<td>
			<hr />
		</td>
	</tr>
    <tr>
		<td class="pk">
			<strong>
				<asp:Literal ID="ltrHeader" runat="server" 
                Text="เปลี่ยนแปลงแก้ไข User Role"></asp:Literal></strong>
		</td>
	</tr>
	<tr>
		<td>
			<asp:GridView ID="gvRole" runat="server" AllowPaging="False" 
                AutoGenerateColumns="False" Width="100%" BackColor="#F7F7F7">
				<AlternatingRowStyle BackColor="White" />
			<Columns>
                <asp:TemplateField HeaderText="" >
                    <ItemTemplate>
                        <asp:CheckBox ID="chkRoleID" runat="server" />
                        <asp:Label ID="lblRoleID" runat="server" Text='<%# Bind("ROLE_ID") %>' style="display : none"></asp:Label>
                        <asp:Label ID="lblRoleAuth" runat="server" Text='<%# Bind("ROLE_AUTH") %>' style="display : none"></asp:Label>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" />
                    <HeaderStyle Width="10%" />
                </asp:TemplateField> 
                <asp:BoundField DataField="ROLE_ID" HeaderText="Role ID" >
				<HeaderStyle Width="15%" />
                <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
				<asp:BoundField DataField="ROLE_NAME" HeaderText="Role Name" 
					DataFormatString="{0:dd/MM/yyyy HH:mm:ss}" >
				<HeaderStyle Width="35%" />
                <ItemStyle HorizontalAlign="Left" />
                </asp:BoundField>
				<asp:BoundField DataField="ROLE_DESC" HeaderText="Role Description" >
				<HeaderStyle Width="40%" />
                <ItemStyle HorizontalAlign="Left" />
                </asp:BoundField>
			</Columns>
		    <HeaderStyle BackColor="White" Height="30px" />
		    <PagerStyle BackColor="White" />
		    <RowStyle Height="20px" />
		</asp:GridView>
		</td>
	</tr>
	<tr>
		<td>
			<hr />
		</td>
	</tr>
	<tr>
		<td class="pk">
			<strong>เปลี่ยนแปลงแก้ไข User Privilege</strong>
		</td>
	</tr>
	<tr>
		<td>
			<asp:GridView ID="gvPrivilege" runat="server" AllowPaging="False" 
                AutoGenerateColumns="False" Width="100%" BackColor="#F7F7F7">
				<AlternatingRowStyle BackColor="White" />
			<Columns>
                <asp:TemplateField HeaderText="" >
                    <ItemTemplate>
                        <asp:CheckBox ID="chkFunctionID" runat="server" />
                        <asp:Label ID="lblFunctionID" runat="server" Text='<%# Bind("FUNCTION_ID") %>' style="display : none"></asp:Label>
                        <asp:Label ID="lblFunctionAuth" runat="server" Text='<%# Bind("FUN_AUTH") %>' style="display : none"></asp:Label>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" />
                <HeaderStyle Width="10%" />
                </asp:TemplateField> 
                <asp:BoundField DataField="FUNCTION_ID" HeaderText="Function ID" >
				<HeaderStyle Width="15%" />
                <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
				<asp:BoundField DataField="FUNCTION_NAME" HeaderText="Function Name" >
				<HeaderStyle Width="35%" />
                <ItemStyle HorizontalAlign="Left" />
                </asp:BoundField>
				<asp:BoundField DataField="FUNCTION_DESC" HeaderText="Function Description" >
				<HeaderStyle Width="40%" />
                <ItemStyle HorizontalAlign="Left" />
                </asp:BoundField>
			</Columns>
		    <HeaderStyle BackColor="White" Height="30px" />
		    <PagerStyle BackColor="White" />
		    <RowStyle Height="20px" />
		</asp:GridView>
	    </td>
	</tr>
	<tr>
		<td>
			<hr />
		</td>
	</tr>
	<tr>
		<td style="text-align: right">
			<asp:Button ID="btnSave" runat="server" Text="บันทึก" Width="70px" ValidationGroup="Reg1" />
			&nbsp;<asp:Button ID="btnCancel" runat="server" Text="ยกเลิก" Width="70px" />
		</td>
	</tr>
	<tr>
		<td>
			<asp:ValidationSummary ID="ValidationSummary1" runat="server" ValidationGroup="Reg1" />
		</td>
	</tr>
	<tr>
		<td>
			&nbsp;
		</td>
	</tr>
</table>
